#ifndef LOG_H
#define LOG_H

#include <QObject>
#include <QObject>
#include <QDateTime>
#include <QFile>
#include <QTextStream>
#include <QStandardItemModel>

class Log : public QObject
{
    Q_OBJECT
public:
    explicit Log(QStandardItemModel* model = nullptr,QObject *parent = nullptr);
    void writefile(QString message);

private:
    QString filePath;
    QStandardItemModel* m_model;
    void readfile();

};

#endif // LOG_H
